﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Agr.CQRS.Infrastructure.Orm;
using NHibernate.Criterion;

namespace Agr.CQRS.ViewModel
{
    public class QueryViewModel<T> : CriteriaQuery<T>
    {
        public QueryViewModel<T> WhereAggregateRootIs(Guid id)
        {
            Criteria.Add(Expression.Eq("AggregateRootId", id));
            return this;
        }
    }
}
